import request from '@/utils/request'

export const loginAPI = data => {
  return request.post('/auth/login', data)
}

export const getUser = () => {
  return request.get('/auth/currentUser')
}

// 获取图表用的数据
// export function getLineData () {
//   return request({
//     url: '/analysis/DailyVisitTrend'
//   })
// }
export const getLineAPI = () => {
  return request.get('/analysis/DailyVisitTrend')
}
